package com.lianwei.service;


import com.lianwei.pojo.Goods;

import java.util.List;

public interface GoodsService {
    /**
     * 添加商品
     * @param goods
     * @return
     */
    Integer addGood(Goods goods);
    Integer deleteGood(int id);
    Integer updateGood(Goods goods,int id);
    List<Goods> queryGoods();
    Goods getGoodsById(int id);
    List<Goods> getGoodsLike(String name);
    List<Goods> getGoodsByCategory(int categoryId);
}
